[diffs] Add diffs demo profile workload#605
Conversation
Add the demo/profile harness used to measure large diff rendering through the normal diffs package path. This branch establishes the clean autoresearch baseline without changing library rendering behavior. Experiments: #3 Metric: post_paint_ready_ms baseline 91.3ms
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d865535b25
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| addDuration(leafNodeId, durationUs, 'self'); | ||
|
|
||
| const visitedNodeIds = new Set<number>(); | ||
| let currentNodeId: number | undefined = leafNodeId; | ||
| while (currentNodeId != null && !visitedNodeIds.has(currentNodeId)) { |
There was a problem hiding this comment.
Start ancestor walk above the leaf sample
The CPU bottom-up totals are inflated because each sample’s leaf node is counted twice: once via addDuration(..., 'self') and then again when the ancestor walk starts from leafNodeId. Since addDuration always increments totalUs, leaf frames get double totalMs/totalPercent, which skews the reported CPU hotspots in every run with profiling data.
Useful? React with 👍 / 👎.
| continue; | ||
| } | ||
|
|
||
| const [flag, inlineValue] = rawArg.split('=', 2); |
There was a problem hiding this comment.
Parse inline option values without truncating '='
Using rawArg.split('=', 2) truncates inline values that themselves contain =, e.g. --url=http://127.0.0.1:5173/?a=b becomes http://127.0.0.1:5173/?a. This can silently rewrite profile target URLs (or other inline values), causing the CLI to hit the wrong page and produce misleading failures.
Useful? React with 👍 / 👎.
|
Is this something we still want to add? |
|
I can always generate it again, so up to you on whether it’s useful for you.
…On Wed, Jun 10, 2026 at 5:09 PM Amadeus Demarzi ***@***.***> wrote:
*amadeus* left a comment (pierrecomputer/pierre#605)
<#605 (comment)>
Is this something we still want to add?
—
Reply to this email directly, view it on GitHub
<#605?email_source=notifications&email_token=AAAXSKXLT2RJCK6NMT4DBMD47HMCFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRXGUYTAMZRGM42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-4675103139>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAXSKXFG5OHZ4RQYSIRONT47HMCFAVCNFSNUABGKJSXA33TNF2G64TZHMYTANRQGMYDANZXGM5US43TOVSTWNBTGIYDEMZSHA3DFILWAI>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AAAXSKSGTZOXHZAMFMDUT7347HMCFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRXGUYTAMZRGM42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/AAAXSKSQTNLQPPMHIGJRQUT47HMCFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRXGUYTAMZRGM42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Add the demo/profile harness used to measure large diff rendering through the normal diffs package path. This branch establishes the clean autoresearch baseline without changing library rendering behavior.
Experiments: #3
Metric: post_paint_ready_ms baseline 91.3ms